package org.finesys.common.redis.core.event.listener;

import org.springframework.data.redis.listener.PatternTopic;
import org.springframework.data.redis.listener.RedisMessageListenerContainer;
import org.springframework.data.redis.listener.Topic;

public abstract class AbstractKeyDeletedEventMessageListener extends AbstractKeySpaceEventMessageListener {

	private static final Topic KEY_EVENT_DELETED_TOPIC = new PatternTopic("__keyevent@*__:del");

	public AbstractKeyDeletedEventMessageListener(RedisMessageListenerContainer listenerContainer) {
		super(listenerContainer);
	}

	@Override
	protected Topic getKeyEventTopic() {
		return KEY_EVENT_DELETED_TOPIC;
	}

}
